package com.xintoucloud.pbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.pbs.dao.PartyMemberPermissionMenuDao;
import com.xintoucloud.pbs.entity.PartyMemberPermissionMenu;
import com.xintoucloud.pbs.service.PartyMemberPermissionMenuService;
@Service@Transactional
public class PartyMemberPermissionMenuServiceImpl implements PartyMemberPermissionMenuService{
	@Autowired 
	private PartyMemberPermissionMenuDao partyMemberPermissionMenuDao;
	public List<PartyMemberPermissionMenu> listByPartyMemberPermissionppid(int ppid){
		List <PartyMemberPermissionMenu> list=partyMemberPermissionMenuDao.listByPartyMemberPermissionppid(ppid);
		return list;
		
	}
	@Override
	public void updateState(int ppid, int pmid, int state) {
		partyMemberPermissionMenuDao.updateState(ppid, pmid, state);
		
	}
	@Override
	public PartyMemberPermissionMenu getState(int ppid, int oid) {
		return partyMemberPermissionMenuDao.getState(ppid,oid);	
	} 
	 
}
